package com.ln.design.mode.singleton;

/**
 * @Description 懒汉，线程不安全
 * @Author zhangj
 * @Date 2022/12/1 23:47
 */
public class LazySingleton {

    private static LazySingleton instance;

    private LazySingleton() {
    }

    public static LazySingleton getInstance() {
        if (instance == null) {
            instance = new LazySingleton();
        }
        return instance;
    }

}
